Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several minor issues on FileService #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tejitak
Copy link

@tejitak tejitak commented Jan 18, 2019

This PR contains the following three minor fixes.

Use original_file_name for file model scheme

Use original_file_name instread of original_filename to align with File Model scheme.

Fix a parameter name for fileUploadService->delete

Use key instread of s3_key. s3_key is not used in https://github.com/laravel-rocket/foundation/blob/master/src/Services/Production/FileUploadS3Service.php#L87

Fix unlink argument

Originally, the code causes an error unlink() expects parameter 1 to be a valid path.... To fix it, change the parameter to file path string.

@tejitak tejitak changed the title Fix serval minor issues on FileService Fix several minor issues on FileService Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant